/*
	@file : perf/PerfScope.h
	@author : Wolfhead
*/
#ifndef _LOG_PERF_SCOPE_H_
#define _LOG_PERF_SCOPE_H_

#include <boost/date_time/posix_time/posix_time.hpp>
#include "PerfObject.h"


namespace logger
{
namespace perf
{

class LogPerfScope
{
public:

	template<typename IdentifierType>
	LogPerfScope(IdentifierType id, const std::string& message);

	~LogPerfScope();

private:

	boost::posix_time::ptime m_start_time;
	PerfObject& m_perf;
};

}//namespace perf
}//namespace logger

#endif // #ifndef _LOG_PERF_SCOPE_H_
